package com.pro.mapper;

import com.pro.pojo.JsBeforeUser;
import com.pro.pojo.JsUserCouponUsed;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface JsUserCouponUsedMapper {
    //查询所有用户
    List<JsBeforeUser> getAllJsBeforeUser(@Param("account") String account, @Param("nickname") String nickname);
    //根据状态查询用户优惠券数量
    Integer getUsedCoupon(JsUserCouponUsed param);
    //向用户添加一张优惠券
    boolean addJsUserCouponUsed(JsUserCouponUsed param);
    //向用户添加一张优惠券
    List<JsUserCouponUsed> getAllstate(JsUserCouponUsed param);
    //查询已过期优惠券
    List<JsUserCouponUsed> getAllstateExpired(JsUserCouponUsed param);
    //修改优惠券数量
    boolean updateCouponQuantity(JsUserCouponUsed param);
}
